#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "Serial/serial_client.h"
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void on_connect_btn_clicked();

    void on_disconnect_btn_clicked();

    void on_power_detect_btn_clicked();

    void on_gps_set_btn_clicked();

    void on_communication_set_btn_clicked();

    void onReadyRead(QString );

    void onPrase(PowerInfo);

    void onPrase(GPSInfo);

    void onPrase(CommunicationInfo);

    void onCPBJPrase();

    void slotRecvData(QByteArray , bool isSend = 1);

    void sendData(QByteArray);
    void on_test_send_btn_clicked();

    void on_clear_cache_btn_clicked();

private:
    Ui::MainWindow *ui;

    SerialClient    m_serialClient;
};
#endif // MAINWINDOW_H
